package com.zhang.discount.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhang.discount.entity.FlashSaleSku;
import com.zhang.discount.entity.FlashSales;
import com.zhang.discount.to.FlashSaleSkuModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 秒杀与sku的关联表
 *
 * @author 创世神
 * @since 2024-09-28 10:03:22
 *
 */
@Mapper
public interface FlashSaleSkuMapper extends BaseMapper<FlashSaleSku> {

    /**获取一个场次下的所有sku列表
     * @param sessionId
     * @return {@link List}<{@link FlashSaleSkuModel}>
     */
    List<FlashSaleSkuModel> selectFlashSkusBySession(String sessionId);
}
